export function getChildren(list, id) {
  const arr = []
  list.forEach((v) => {
    if (v.pid === id) {
      v.children = getChildren(list, v.id)
      arr.push(v)
    }
  })
  return arr
}
